import request from '@/utils/request'
// 获取版本列表
export function versionList (query) {
  return request({
    url: '/versionApk/versionList',
    method: 'post',
    data: query
  })
}
// 版本号
export function getvsList (query) {
  return request({
    url: '/versionApk/getvsList',
    method: 'post',
    data: query
  })
}
// 区域
export function getvsionList (query) {
  return request({
    url: '/versionApk/getvsionList',
    method: 'post',
    data: query
  })
}

// 获取版本列表
export function getVersionList (query) {
  return request({
    url: '/versionApk/getVersionList',
    method: 'post',
    data: query
  })
}
export function getAreaTypeApk (type, area) {
  return request({
    url: '/versionApk/getAreaTypeApk/' + type + '/' + area,
    method: 'get',
  })
}


export function getAllAreaList (type) {
  return request({
    url: '/versionApk/getAllAreaList/' + type,
    method: 'get'
  })
}
// 下载
export function downloadApk (filename) {
  return request({
    url: '/versionApk/downloadApk/' + filename,
    method: 'get',
    responseType: 'blob' // 关键配置：指定响应类型为二进制流
  })
}
// 新增账户管理
export function addUser (data) {
  return request({
    url: '/versionApk/versionupload',
    method: 'post',
    data: data
  })
}






